POV-Ray : Newsgroups : povray.advanced-users : rectangles : rectangles Server Time
2 Nov 2024 03:14:10 EDT (-0400)
  rectangles  
From: Christoph Hormann
Date: 20 Jun 2000 13:09:45
Message: <394FA557.CE84BDB5@schunter.etc.tu-bs.de>
Because I needed some simple rectangle shape for a scene I am working on
and because it is used about 1000 times in the scene, I tried some
different possibilities building that shape and checked
memory-use/tracing time.  

It is just a very quick test on a concrete scene, differences in time
are quite low, so you probably can not say anything definitive from
these values (did not want to wait longer :-).  BTW, scene also contains
many other objects.  

Any comments/ideas ?

Christoph


Objects I tested:

//------------------------------

mesh {
   triangle{<0.0,0.0,0.0>,<0.0,0.0,1.0>,<1.0,0.0,1.0>}
   triangle{<0.0,0.0,0.0>,<1.0,0.0,0.0>,<1.0,0.0,1.0>}
}

//------------------------------

union {
   triangle{<0.0,0.0,0.0>,<0.0,0.0,1.0>,<1.0,0.0,1.0>}
   triangle{<0.0,0.0,0.0>,<1.0,0.0,0.0>,<1.0,0.0,1.0>}
}

//------------------------------

box {  
   <0, -0.00001, 0>  
   <1,  0.00001, 1>  
}

//------------------------------

plane {
  y, 0.0
  hollow on
  clipped_by { box
   { <0, -0.1, 0>
     <1,  0.1, 1> } }
}

//------------------------------

polygon {
  5, <0, 0>, <0, 1>, <1, 1>, <1, 0>, <0, 0>
  rotate 90*x
} 

//------------------------------


Time/memory data:

###################################################################
-------------------------------------------------------------------
mesh
-------------------------------------------------------------------
Peak memory used:         47840394 bytes
-------------------------------------------------------------------
Time For Parse:    0 hours  0 minutes  10.0 seconds (10 seconds)
Time For Trace:    0 hours  3 minutes   7.0 seconds (187 seconds)
    Total Time:    0 hours  3 minutes  17.0 seconds (197 seconds) 
###################################################################
-------------------------------------------------------------------
union
-------------------------------------------------------------------
Peak memory used:         47803698 bytes
-------------------------------------------------------------------
Time For Parse:    0 hours  0 minutes  11.0 seconds (11 seconds)
Time For Trace:    0 hours  3 minutes   3.0 seconds (183 seconds)
    Total Time:    0 hours  3 minutes  14.0 seconds (194 seconds)  
###################################################################
-------------------------------------------------------------------
box
-------------------------------------------------------------------
Peak memory used:         47920778 bytes
-------------------------------------------------------------------
Time For Parse:    0 hours  0 minutes  10.0 seconds (10 seconds)
Time For Trace:    0 hours  3 minutes   2.0 seconds (182 seconds)
    Total Time:    0 hours  3 minutes  12.0 seconds (192 seconds)  
###################################################################
-------------------------------------------------------------------
clipped plane
-------------------------------------------------------------------
Peak memory used:         48296618 bytes
-------------------------------------------------------------------
Time For Parse:    0 hours  0 minutes  10.0 seconds (10 seconds)
Time For Trace:    0 hours  3 minutes   0.0 seconds (180 seconds)
    Total Time:    0 hours  3 minutes  10.0 seconds (190 seconds)  
###################################################################
-------------------------------------------------------------------
polygon
-------------------------------------------------------------------
Peak memory used:         47882238 bytes
-------------------------------------------------------------------
Time For Parse:    0 hours  0 minutes  10.0 seconds (10 seconds)
Time For Trace:    0 hours  2 minutes  57.0 seconds (177 seconds)
    Total Time:    0 hours  3 minutes   7.0 seconds (187 seconds)
###################################################################

--
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.